home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / comm / mebbs / usage03.lha / usage.docs next >
Text File  |  1994-07-08  |  2KB  |  47 lines

  1.    USAGE.REXX - Another dumb little utility by Larry Cloud, Kitt's Korner BBS
  2.                        MEBBSNET CSR NorthWest USA - M3001
  3.  
  4.   We used to use a program called CT which made a nice looking Bar-graph chart
  5. of the BBS usage.  That was with Starnet.  When MEBBSNET came out, Bill
  6. changed some of the text in the log that CT was looking for (plus it was
  7. looking for STARNET1.LOG).  Keith liked it so much, he tasked me with writing
  8. a replacement for it.  Since my "C" knowledge can pretty much fill a standard
  9. sized thimble, I of course wrote it in Arexx.  It comes in at a whopping 79
  10. lines of code, and is just over 3.6K in length.  See, you can do just about
  11. anything in Arexx with a little thought!
  12.  
  13.   So, you ask, what do I need to do to make this puppy work for me?
  14. Copy the file called USAGE.REXX to your MEBBSNET:REXX directory.  Then,
  15. add a line in your MIDNIGHT.SCP file that runs it.  It takes two arguments - 
  16. first you pass the line number, then the bulletin number.  So, if you wanted
  17. to make a chart of line 1's usage, and send it to bulletin #12, you would put
  18. the following in your midnight script:
  19.  
  20. RX MEBBSNET:REXX/USAGE.REXX 1 12
  21.  
  22. For a line 2 usage chart, going to bulletin #69 (dude) you would put:
  23.  
  24. RX MEBBSNET:REXX/USAGE.REXX 2 69
  25.  
  26.   Before you run it for the first time, you will need to edit line #2.
  27. You need to tell it your BBS name, and the path to your bulletins directory.
  28. This is the ONLY line you should edit in this script!
  29.  
  30.   See how easy that was?  I decided to do it this way for people running
  31. multiple lines.
  32.  
  33.   Next neato thing - if the file in your configfiles directory doesn't exist,
  34. OR, if instead of passing the bulletin number you pass the word RESET, it
  35. will start all over with raw stats.
  36.  
  37.   If you'd like to see something added to this program, let me know.  Its
  38. just too small right now, and it runs too fast ;)
  39.  
  40.   IMPORTANT - You NEED to MAKE SURE that your MEBBSNETx.LOG (x being the line
  41. number) gets deleted after running this script.  And it has to run at midnight.
  42. I didn't put any idiot checking into it (I'm pretty much one myself) so just
  43. make sure you follow that simple rule.
  44.  
  45.  
  46. Larry
  47.